package com.itcodai.utils.stream.optional;

/**
 * 用户实体类
 * @author c-fanqj
 * @date 2022/5/20
 * @apiNote
 */
public class Person {
    private String name;
    private Integer age;

    public Person(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public Person() {
    }

    @Override
    public String toString() {
        return String.format("姓名：%s，年龄：%d", name, age);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}

